/* This file was created by Nokia Developer's Suite for J2ME(TM) */

import javax.microedition.lcdui.*;

import localization.Language;
import localization.LocalizationManager;

public class MainMenuScreen extends List
{
	private final static Language language = LocalizationManager.getCurrentLanguageFromInstance();
	
    public static final Command m_exit = new Command( language.getCloseText(), Command.EXIT, 0);
    
    //stale odpowiadajace wyborom
    public static final int VIEW   = 0;
    public static final int LOAD   = 1;
    public static final int SAVE   = 2;
    public static final int NEW    = 3;
    public static final int RENAME = 4;
    public static final int DELETE = 5;
    public static final int HELP   = 6;
    public static final int RESET  = 7;
    public static final int EXIT   = 8;
    
    public MainMenuScreen( String title, Scheduler midlet )
	{
		super( title, Choice.IMPLICIT );

        
        this.append( language.getBrowseText(), null );
        this.append( language.getLoadText(), null );
        this.append( language.getSaveText(), null );
        this.append( language.getNewText(), null );
        this.append( language.getChangeNameText(), null );
        this.append( language.getDeleteText(), null );
        this.append( language.getHelpText(), null );
        this.append( language.getResetMemoryText(), null );
        this.append( language.getExitText(), null );
        
        this.addCommand(m_exit);
        
        setCommandListener( midlet );
	}

    


}